﻿

// =================================================================== 
// Module说明
//====================================================================
// 创建时间：2018-12-13 12:49:31
// 负责人：lvsc
// ===================================================================

using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using OF.Component.Model;
using OF.Component.DTO;
using System.Data;

namespace OF.Component.IDAL
{

    /// <summary>
    ///网办订单 数据访问层接口  
    /// </summary>
    internal partial interface INetworkOrder
    {

        /// <summary>
        /// 根据断言条件获取单个网办订单
        /// </summary>
        NetworkOrderInfo QuerySingle(Expression<Func<NetworkOrderInfo, bool>> predicate);

        /// <summary>
        /// 根据断言条件获获取网办订单列表
        /// </summary>
        IList<NetworkOrderInfo> QueryList(Expression<Func<NetworkOrderInfo, bool>> predicate);

        /// <summary>
        /// 获取用户id
        /// </summary>
        /// <param name="userId"></param>
        /// <param name="bizTypeId"></param>
        /// <returns></returns>
        long GetOrderId(int userId, int bizTypeId);

        /// <summary>
        /// 查询分页列表
        /// </summary>
        /// <param name="condition"></param>
        /// <returns></returns>
        IList<NetworkOrderDto> SearchList(NetworkOrderCondition condition);

        /// <summary>
        /// 订单详情
        /// </summary>
        /// <param name="orderId"></param>
        /// <returns></returns>
        NetworkOrderDetailDto GetOrderInfo(long orderId);

        /// <summary>
        /// 获取订单列表
        /// </summary>
        /// <param name="condition"></param>
        /// <returns></returns>
        DataTable GetOrderList(NetworkOrderApiCondition condition);

        ///<summary>
        ///根据主键取出信息
        ///</summary>
        DataTable GetDetailByID(long orderID);
    }


}